<div data-ng-controller="FilterCustomCtrl">
    <div style="padding: 10px 50px;">
        <h4 class="panel-title">
            <span class="label label-info" style="font-size: 15px">拦截器链:自定义</span>
            <div style="margin: 20px 0 0 0">
                <button type="button" class="btn btn-primary" style="size: 15px" ng-click="createFilterChain()">
                    创建
                </button>
                <button type="button" class="btn btn-warning" style="size:  15px" ng-click="reloadFilterChains()">
                    重启
                </button>
                <button type="button" class="btn bg-danger" style="size:  15px;float:right"
                        ng-click="resetFilterChains()">
                    初始化
                </button>
            </div>
        </h4>

        <table class="table table-responsive" style="margin-top: 30px">
            <thead>
            <tr>
                <th>名称</th>
                <th>权重</th>
                <th>地址</th>
                <th>授权</th>
                <th>管理</th>
                <th>禁用</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="c in chains">
                <td>{{c.name}}</td>
                <td>{{c.priority}}</td>
                <td>{{c.url}}</td>
                <td>{{c.authorization}}</td>
                <td><a style="cursor: pointer" ng-click="alterFilterChain(c)">修改</a></td>
                <td><a style="cursor: pointer;color: red" ng-click="removeFilterChain(c)">移除</a></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>